
package com.ruoyi.client.service.impl;

import com.ruoyi.client.mapper.HomeMapper;
import com.ruoyi.client.pojo.vo.HomeCarouselVo;
import com.ruoyi.client.pojo.vo.HomeGoodsVo;
import com.ruoyi.client.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service("ClientHomeServiceImpl") ///避免与后台管理的HomeServiceImpl重名
public class HomeServiceImpl implements HomeService {
    @Resource(name="ClientHomeMapper")  // 注入正确的Bean
    private HomeMapper homeMapper;

    @Override
    public List<HomeGoodsVo> selectGoodsVoList(HashMap map) {
        return homeMapper.selectGoodsVoList(map);
    }

    @Override
    public List<HomeCarouselVo> selectCarouselVoList(HashMap map) {
        return homeMapper.selectCarouselVoList(map);
    }
}
